package com.test.event.listener;

import com.test.event.service.impl.NameEvent;
import lombok.Builder;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Builder
@Component(value = "nameEventListener")
public class NameEventListener implements EventListener<NameEvent> {

    @Override
    public void onEvent(NameEvent event) {
        log.debug("do my business... {} ", event.getName());
    }
}
